package com.badshun.badscript;

public abstract class BSUtils {
	//用于检测标识符是否以数字开头
	public static boolean isStartWithDigital(String token) {
		String character = new String(new char[]{token.charAt(0)});

		for(int i = 0; i < 10; i++) {
			if(character.equals(String.valueOf(i))) {
				return true;
			}
		}

		return false;
	}
	
	public static boolean isContain(String str, char c) {
		for(int i = 0; i < str.length(); i++) {
			if(str.charAt(i) == c) {
				return true;
			}
		}
		
		return false;
	}
}
